@extends('admin.layout.layout')
@section('title','用户管理')
@section('con')


    <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                   
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                          <h2 class="page-header">用户添加</h2>
                        </div>
                        @if (count($errors) > 0)
                            <div class="alert alert-danger">
                                <ul>
                                    @foreach ($errors->all() as $error)
                                        <li>{{ $error }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6 col-lg-offset-3">
                                    <form role="form" action="{{url('/admin/user/insert')}}" method="post" enctype="multipart/form-data">
                                        <div class="form-group">
                                            <label>用户名:</label>
                                            <input name="uname" value="" class="form-control">
                                          
                                        </div>
                                        <div class="form-group">
                                            <label>密码:</label>
                                            <input name="upwd" value="{{old('upwd')}}" type="password" class="form-control">
                                        </div>

                                        <div class="form-group">
                                            <label>邮箱:</label>
                                            <input name="email" value="{{old('email')}}" class="form-control">
                                        </div>

                                        <div class="form-group">
                                            <label>手机号:</label>
                                            <input name="tel" value="{{old('tel')}}" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>头像:</label>
                                            <input type="file" name="uface">
                                        </div>
                                        {{csrf_field()}}
                                       
                                        
                                        <button class="btn btn-primary" type="submit">添加</button>
                                        <button class="btn btn-danger" type="reset">重置</button>
                                    </form>
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                              
                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
            </div>
        </div>
@endsection